package weixinkeji.dev.dc.base.user.h;

import weixinkeji.dev.dc.base.user.bean.FWY;
import sys.wx.ann.hm.H;
import sys.wx.ann.hm.M;
import sys.wx.c.ATR;
import sys.wx.c.components.check.bean.CheckData;
import sys.wx.c.components.cv.CV;
import sys.wx.m.db.dao.mysql.Dao;

@H("weixinkeji/dev/dc/base/user/d")
public class FWYHD {

    ATR a;

    public FWYHD(ATR a) {
        this.a = a;
    }

    @M("/dell")//通过 weixinkeji/dev/dc/base/user/d/dell.imy 访问
    public String dellOne() {
        String id = CV.getParameter(a.request, "fwy_id", CheckData.IDS);
        if (id == null) {
            a.out_OK_NO(false, "不是有效主键。");
            return null;
        }
        a.out_OK_NO(Dao.dell_vast(FWY.class, id));
        return null;
    }

}
